package hotciv.factories;

import java.util.HashMap;

import hotciv.common.CommonTileMap;
import hotciv.framework.City;
import hotciv.framework.Position;
import hotciv.framework.TileMap;
import hotciv.framework.Unit;
import hotciv.framework.WinnerStrategy;
import hotciv.variants.ZetaWinner;

public class ZetaCivFactory extends AlphaCivFactory {
	
	private TileMap tileMap;
	
	public ZetaCivFactory() {
		super();
	}
	
	public ZetaCivFactory(TileMap tileMap, HashMap<Position,Unit> unitMap, HashMap<Position, City> cityMap) {
		this();
		this.tileMap = tileMap;
		this.unitMap = unitMap;
		this.cityMap = cityMap;
	}
	
	@Override
	public TileMap tileMap() {
		if (tileMap==null) return new CommonTileMap();
		else return tileMap;
	}
	
	@Override
	public WinnerStrategy winnerStrategy() {
		return new ZetaWinner();
	}
}
